<template>
  <div class="box">
    <div class="title">
      单位受理/完工用时分析 
    </div>
    <div class="box-data">
        <div class="data data1">
            <img src="../../assets/hqrepair/use-time1.png">
            <span class="txt1">受理用时：</span>
            <span class="txt2">{{ data.d1 }}</span>
        </div>
        <div class="data data2">
          <img src="../../assets/hqrepair/use-time2.png">
          <span class="txt1">完工用时：</span>
            <span class="txt2">{{ data.d2 }}</span>
        </div>
    </div>
    <Echart :id="id" :options="options" :t="t" height="80%" width="100%"></Echart>
  </div>
</template>
<script>
import Echart from '@/common/echart'
export default {
  data() {
    return {
      id: "Right_3_1"
    }
  },
  components: {
    Echart,
  },
  props: { 
    options: {
      type: Object,
      default: ()=>({})
    },
    data: {
      type: Object,
      default: ()=>({})
    },
    t: {
      type: String,
      default: '0'
    }
  }, 
}
</script>

<style lang="scss" scoped>
$box-width: 100%;
$box-height: 100%;
.box {
  height: $box-height;
  width: $box-width;
  background-image: url("../../assets/hqrepair/box-1495.png");
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  font-family: Alibaba_275;
  .title {
    font-family: DingTalk JinBuTi;
    color: #fff;
    font-size: 1.2vw;
    line-height: 2.2vw;
    text-shadow: 2px 1px 0px rgba(0, 31, 61, 0.46);
    text-align: center;
  }
  .box-data{
    margin: 0.5vw auto;
    text-align: center;
    .data{
        display: inline-block;
        position: relative;
        width: 7.9vw;
        height: 1.5vw;
        margin: 0 0.4vw;
        img{
          width: 100%;
        }
        .txt1{
            position: absolute;
            left: 0.45vw;
            top: 0.6vw;
            font-size: 0.7vw;
        }
        .txt2{
            position: absolute;
            right: 0.45vw;
            top: 0.6vw;
            font-size: 1.3vw;
        }
    }
  }
}
</style>
